home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE08 / DATADICT / TARGET.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-05-07  |  716 b   |  38 lines

  1. unit Target;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Buttons, ExtCtrls;
  8.  
  9. type
  10.   TDirectoryForm = class(TForm)
  11.     Panel1: TPanel;
  12.     DirEdit: TEdit;
  13.     DirLabel: TLabel;
  14.     BitBtn1: TBitBtn;
  15.     BitBtn2: TBitBtn;
  16.   private
  17.     { Private declarations }
  18.   public
  19.     { Public declarations }
  20.     function ShowForm(LabelCap, DefaultDir: String): integer;
  21.   end;
  22.  
  23. var
  24.   DirectoryForm: TDirectoryForm;
  25.  
  26. implementation
  27.  
  28. {$R *.DFM}
  29.  
  30. function TDirectoryForm.ShowForm(LabelCap, DefaultDir: String): integer;
  31. begin
  32.   DirLabel.Caption := LabelCap;
  33.   DirEdit.Text := DefaultDir;
  34.   Result := ShowModal;
  35. end;
  36.  
  37. end.
  38.